﻿@using SapaFinance.DTO
@using Telerik.Web.Mvc.UI
@model IEnumerable<OrderDTO>
@{ Html.BeginForm("Command", "Order"); }
@(Html.Telerik().Grid(Model)
               .Name("Grid")
               .DataKeys(keys => { keys.Add(o => o.UID); })
               .Columns(columns =>
                        {
                            //columns.Bound(o => o.UID).Title("checkedRecords").Hidden(true);
                            columns.Template(@<text>
    <input name="checkedRecords" type="hidden" value="@item.UID" title="checkedRecords" /></text>).Hidden(true).Width(50).HtmlAttributes(new { style = "text-align:center" });
                            columns.Bound(o => o.Number).Width(6);
                            columns.Bound(o => o.PaymentPeriod).Format("{0:dd/MM/yyyy}");
                            columns.Bound(o => o.Payment);
                        })
                       .Footer(false))
<p>
    <button type="submit" class="t-button t-state-default" name="submitButton" value="ProcessOrder">
        Обработать</button>
   
</p>
@{ Html.EndForm(); }
